<?php
declare(strict_types=1);

namespace cms\exam\request;

use cms\system\request\SceneValidatorRequest;
use Hyperf\Validation\Request\FormRequest;

class RoomFormRequest extends FormRequest
{
    use SceneValidatorRequest;
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'name' => 'required',
            'decide_mode' => '',
            'make_mode' => '',
            'retest_enable' => '',
            'retest_max' => '',
            'start_date' => '',
            'finish_date' => '',
            'start_time' => '',
            'finish_time' => '',
            'duration' => '',
            'score_total' => '',
            'setting' => '',
        ];
    }

    public function scene(): array
    {
        return [];
    }
}
